package com.example.demo.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

@RestController
//@RequestMapping("/test")
public class TestController {

    @RequestMapping(path = "sayhi",method = RequestMethod.POST)
    public String say() {
        return "hi";
    }

    @GetMapping("/get")
    public String get() {
        return "get";
    }

}
